{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e9.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 11:07:08
{txt}
{com}. clear
{txt}
{com}. use "symbols adults.dta"
{txt}
{com}. set more off
{txt}
{com}. 
. drop if expert == 1
{txt}(176 observations deleted)

{com}. 
. set seed 358395
{txt}
{com}. sem (d <-  t  wl p)(p <-  t  wl)   
{res}{txt}(46 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-414.07171}  
Iteration 1:{space 3}log likelihood = {res:-414.07171}  

Structural equation model{col 49}Number of obs{col 67}= {res}       299
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-414.07171

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4755503{col 26}{space 2} .0497966{col 37}{space 1}    9.55{col 46}{space 3}0.000{col 54}{space 4} .3779507{col 67}{space 3} .5731499
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0331682{col 26}{space 2} .0256138{col 37}{space 1}   -1.29{col 46}{space 3}0.195{col 54}{space 4}-.0833703{col 67}{space 3} .0170339
{txt}{space 10}wl {c |}{col 14}{res}{space 2}  .246942{col 26}{space 2}  .026596{col 37}{space 1}    9.28{col 46}{space 3}0.000{col 54}{space 4} .1948147{col 67}{space 3} .2990692
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2961011{col 26}{space 2} .0338395{col 37}{space 1}    8.75{col 46}{space 3}0.000{col 54}{space 4} .2297769{col 67}{space 3} .3624254
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0929385{col 26}{space 2} .0292571{col 37}{space 1}    3.18{col 46}{space 3}0.001{col 54}{space 4} .0355956{col 67}{space 3} .1502813
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1716945{col 26}{space 2} .0292479{col 37}{space 1}    5.87{col 46}{space 3}0.000{col 54}{space 4} .1143696{col 67}{space 3} .2290193
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5151271{col 26}{space 2} .0256317{col 37}{space 1}   20.10{col 46}{space 3}0.000{col 54}{space 4} .4648899{col 67}{space 3} .5653644
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0472835{col 26}{space 2} .0038671{col 54}{space 4} .0402804{col 67}{space 3} .0555043
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0637733{col 26}{space 2} .0052158{col 54}{space 4} .0543279{col 67}{space 3}  .074861
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       299{col 27}        .{col 38}-414.0717{col 49}     9{col 58} 846.1434{col 69} 879.4474
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4755503{col 26}{space 2} .0497966{col 37}{space 1}    9.55{col 46}{space 3}0.000{col 54}{space 4} .3779507{col 67}{space 3} .5731499
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0331682{col 26}{space 2} .0256138{col 37}{space 1}   -1.29{col 46}{space 3}0.195{col 54}{space 4}-.0833703{col 67}{space 3} .0170339
{txt}{space 10}wl {c |}{col 14}{res}{space 2}  .246942{col 26}{space 2}  .026596{col 37}{space 1}    9.28{col 46}{space 3}0.000{col 54}{space 4} .1948147{col 67}{space 3} .2990692
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0929385{col 26}{space 2} .0292571{col 37}{space 1}    3.18{col 46}{space 3}0.001{col 54}{space 4} .0355956{col 67}{space 3} .1502813
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1716945{col 26}{space 2} .0292479{col 37}{space 1}    5.87{col 46}{space 3}0.000{col 54}{space 4} .1143696{col 67}{space 3} .2290193
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0441969{col 26}{space 2} .0146628{col 37}{space 1}    3.01{col 46}{space 3}0.003{col 54}{space 4} .0154585{col 67}{space 3} .0729354
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0816494{col 26}{space 2} .0163265{col 37}{space 1}    5.00{col 46}{space 3}0.000{col 54}{space 4}   .04965{col 67}{space 3} .1136488
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4755503{col 26}{space 2} .0497966{col 37}{space 1}    9.55{col 46}{space 3}0.000{col 54}{space 4} .3779507{col 67}{space 3} .5731499
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0110287{col 26}{space 2} .0287789{col 37}{space 1}    0.38{col 46}{space 3}0.702{col 54}{space 4}-.0453769{col 67}{space 3} .0674344
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3285913{col 26}{space 2} .0287699{col 37}{space 1}   11.42{col 46}{space 3}0.000{col 54}{space 4} .2722034{col 67}{space 3} .3849793
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0929385{col 26}{space 2} .0292571{col 37}{space 1}    3.18{col 46}{space 3}0.001{col 54}{space 4} .0355956{col 67}{space 3} .1502813
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1716945{col 26}{space 2} .0292479{col 37}{space 1}    5.87{col 46}{space 3}0.000{col 54}{space 4} .1143696{col 67}{space 3} .2290193
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff 
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       299
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0816494{col 26}{space 2} .0183061{col 37}{space 1}    4.46{col 46}{space 3}0.000{col 54}{space 4}   .04577{col 67}{space 3} .1175287
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .3285913{col 26}{space 2} .0288875{col 37}{space 1}   11.37{col 46}{space 3}0.000{col 54}{space 4} .2719729{col 67}{space 3} .3852098
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       299
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .08164936{col 27}{space 2}-.0004531{col 38}{space 2} .01830611{col 51}{space 2} .0489744{col 63}{space 1} .1199717{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0523078{col 63}{space 1} .1221138{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .32859132{col 27}{space 2} .0016037{col 38}{space 2} .02888749{col 51}{space 2} .2780589{col 63}{space 1}  .385865{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .2773698{col 63}{space 1} .3846888{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       299
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0441969{col 26}{space 2} .0156341{col 37}{space 1}    2.83{col 46}{space 3}0.005{col 54}{space 4} .0135546{col 67}{space 3} .0748392
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .0110287{col 26}{space 2} .0288406{col 37}{space 1}    0.38{col 46}{space 3}0.702{col 54}{space 4}-.0454979{col 67}{space 3} .0675553
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       299
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .04419693{col 27}{space 2} .0003963{col 38}{space 2}  .0156341{col 51}{space 2} .0154152{col 63}{space 1} .0780116{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0167795{col 63}{space 1} .0814028{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .01102872{col 27}{space 2} .0009226{col 38}{space 2} .02884062{col 51}{space 2}-.0449975{col 63}{space 1}  .063774{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0482239{col 63}{space 1} .0609902{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       337
                                                {txt}F(3, 333)         =  {res}     0.63
                                                {txt}Prob > F          = {res}    0.5946
                                                {txt}R-squared         = {res}    0.0057
                                                {txt}Root MSE          =    {res} .50106

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2} .0047842{col 26}{space 2} .0549347{col 37}{space 1}    0.09{col 46}{space 3}0.931{col 54}{space 4}-.1032786{col 67}{space 3} .1128471
{txt}{space 4}interest {c |}{col 14}{res}{space 2}-.1033738{col 26}{space 2} .1061994{col 37}{space 1}   -0.97{col 46}{space 3}0.331{col 54}{space 4}  -.31228{col 67}{space 3} .1055324
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}-.0820734{col 26}{space 2} .1069228{col 37}{space 1}   -0.77{col 46}{space 3}0.443{col 54}{space 4}-.2924026{col 67}{space 3} .1282558
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6142092{col 26}{space 2} .0761554{col 37}{space 1}    8.07{col 46}{space 3}0.000{col 54}{space 4} .4644029{col 67}{space 3} .7640155
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e9.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 11:08:58
{txt}{.-}
{smcl}
{txt}{sf}{ul off}